package swtElements;

import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;

public class MyComposite {
	
	Composite composite;
	
	public MyComposite(FormToolkit toolkit, MySection section, int columns, boolean last){
		if(last == false){
			this.composite = toolkit.createComposite(section.getSection());
			GridLayoutFactory.swtDefaults().numColumns(columns).margins(0, 0).applyTo(
					composite);
		}else{
			this.composite = toolkit.createComposite(section.getSection());
			GridLayoutFactory.swtDefaults().numColumns(columns).margins(0, 0).applyTo(
					composite);
		}
	}

	public Composite getComposite() {
		// TODO Auto-generated method stub
		return composite;
	}
}
